﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TTData
{
    /// <summary>
    /// The House object 
    /// </summary>
    public class House
    {
        public const String COLOR_BLUE = "blue";
        public const String COLOR_RED = "red";
        public const String COLOR_YELLOW = "yellow";
        public const String COLOR_GREEN = "green";

        private String _cityName;
        private String _color;

        /// <summary>
        /// Creates a new house object with no city attached
        /// </summary>
        public House(String color)
        {
            _cityName = City.NO_CITY;
            _color = color;
        }

        /// <summary>
        /// Creates a new house object with the specified city attached
        /// </summary>
        /// <param name="cityName">the name of the city the house is situated in</param>
        public House(String cityName, String color)
        {
            _cityName = cityName;
            _color = color;
        }

        /// <summary>
        /// Sets or gets the name of the city the house is situated in 
        /// </summary>
        public String Color
        {

            get
            {
                return _color;
            }
            set
            {
                _color = value;
            }
        }

        /// <summary>
        /// Sets or gets the house color 
        /// </summary>
        public String CityName
        {

            get
            {
                return _cityName;
            }
            set
            {
                _cityName = value;
            }
        }

    }
}
